package com.biomatch.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.biomatch.domain.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TeacherMapper extends BaseMapper<Teacher> {

    long findCountByMap(Map<String, Object> params);

    List<Teacher> selectTeacherList(Map<String, Object> params);

    void insertTeacherAndType(@Param(value = "teacherId") String teacherId, @Param(value = "dancerTypeId") String dancerTypeId);

    void deleteTeacherAndTypes(String teacherId);

    void deleteTeacherAndCourses(String teacherId);

    void insertTeacherAndCourse(@Param(value = "teacherId") String teacherId, @Param(value = "courseId")  String courseId);
}
